package com.triones.api.entity.interlace.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * interlace区块链地址目录
 */
@TableName(value = "tr_interlace_blockchain_address_catalogue")
@Data
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class InterlaceBlockchainAddressCatalogueDO {
    @TableId(value = "id")
    private Long id;
    /**
     * 用户id
     */
    private Long uid;
    /**
     * 链
     */
    @NotBlank(message = "链不能为空")
    private String chain;
    /**
     * 地址
     */
    @NotBlank(message = "地址不能为空")
    private String address;
    /**
     * 币种
     */
    @NotBlank(message = "币种不能为空")
    private String currency;
    /**
     * 昵称
     */
    @NotBlank(message = "昵称不能为空")
    private String nickName;
    /**
     * 0: 未删、1：删除
     */
    private String del;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 创建时间
     */
    private Long createTime;
    /**
     * 更新时间
     */
    private Long updateTime;
}
